import VectorSource from 'ol/source/Vector';
import Feature from 'ol/Feature';
import Layer from 'ol/layer/Layer';
import MapBrowserEvent from 'ol/MapBrowserEvent';

export interface ISbBaseLayer {

    sourceChange?: (source: VectorSource) => void;

    featureClick?: (feature: Feature, layer: Layer, mapEvent: MapBrowserEvent) => void;

    featurePointermove?: (feature: Feature, layer: Layer, mapEvent: MapBrowserEvent) => void;

}

export interface FeatureClickEvent {
    feature: Feature;
    layer: Layer;
    mapEvent: MapBrowserEvent;
}
